package org.clockworkmages.games.anno1186.model.effect;

public class ConditionStatus {

	/**
	 * Level of the condition. Some onditions have effects that may be stronger
	 * or weaker, depending on the level.
	 */
	private int level;

	/**
	 * Time (as Date.getTime()) aftr which this condition should be
	 * deactivated/automatically removed.
	 */
	private long validUntil;

	/**
	 * For continuous Conditions (Conditions that have interval>0) only, this
	 * informs when the Condition's effect has last been triggered and when it
	 * sohuld be triggered next.
	 */
	private long lastExecuted;

	public ConditionStatus(int level, long validUntil, long lastExecuted) {
		super();
		this.level = level;
		this.validUntil = validUntil;
		this.lastExecuted = lastExecuted;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public long getValidUntil() {
		return validUntil;
	}

	public void setValidUntil(long validUntil) {
		this.validUntil = validUntil;
	}

	public long getLastExecuted() {
		return lastExecuted;
	}

	public void setLastExecuted(long lastExecuted) {
		this.lastExecuted = lastExecuted;
	}

}
